package STUDENT.TRANDAODAIVI.OOPs.Baitap_In_Poly_Ab;
import java.util.Scanner;

class Toyota{
	
	public void getGeneralInformation(){
		System.out.println("1");
		System.out.println("Vanh duc hop kim 15inch");
		System.out.println("Den pha cam bien anh sang");
		System.out.println("Can gat nuoc cam bien");
		System.out.println("Xy lanh VVT-1 dung tich 1 lit/3 chiec");
		System.out.println("Tieu thu nhien lieu: 3.6lit/100km");
		System.out.println("Nong do khi thai: 99g/km");
		System.out.println("Dieu hoa nhiet do");
	}
}
class ToyotaiQ1 extends Toyota{
	public void getSpecificInformation(){
		System.out.println("2");
		System.out.println("Guong dieu khien dien va co suoi");
		System.out.println("Am thanh 6 loa");
		System.out.println("Den suong mu");
	}
}
class ToyotaiQ2 extends Toyota{
	public void getSpecificInformation(){
		System.out.println("2");
		System.out.println("Guong dieu khien dien va co suoi");
		System.out.println("Den suong mu");
		System.out.println("He thong chia khoa thong minh");
	}
}


public class BT1 {
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	ToyotaiQ1 q1=new ToyotaiQ1();
	ToyotaiQ2 q2=new ToyotaiQ2();
	System.out.print("Nhap loai xe can xem: ");
	String temp=sc.nextLine();
	
	switch (temp){
	case "ToyotaiQ1": q1.getGeneralInformation();q1.getSpecificInformation();break;
	case "ToyotaiQ2": q2.getGeneralInformation();q2.getSpecificInformation();break;
	default: System.out.println("Khong co loai xe nay");
	}
	
}
}
